**** OPEN OUTPUT LOG FILE  *****


log using "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Output\Implementation Delay.MANUSCRIPT MODELS.04-18-2025.smcl", replace 




*** MODELS PREDICTING IMPLEMENTATION DELAY: TIME FROM INITIAL FILING BY CLAIMANT --> PAYMENT TO CLAIMANT [PROPORTION OBSERVED IN TIME RANGE: IN DAYS] ***






*** RETRIEVE STATISTICAL DATABASE [as of 07-28-2024] ***


use "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Data\Implementation Delay.STATISTICAL DATABASE.07-28-2024.dta", replace



*** SET DATA TO PANEL STRUCTURE  ***

xtset stateid monthyear, monthly

*
*
*
*
*
sum delay_14days, detail
*
sum delay_14days if itmod_adopt_state==1 & itmod_monthcount>0, detail



*** GENERATE PROPORTION MEASURES OF IMPLEMENTATION DELAY FOR FAR BELOW STANDARD PERFORMANCE [EXCESSIVELY LATE: DELAY DAYS >= 29] ***
*
*
*
gen delay_29plusdays = (intra29_35 + intra36_42 + intra43_49 + intra50_56 + intra57_63 + intra64_70 + eqgreater70_intra) / total
*
sum delay_29plusdays, detail
*
sum delay_29plusdays if itmod_adopt_state==1 & itmod_monthcount>0, detail







*** COMPUTE WITHIN-STATE DESCRIPTIVE STATISTICS FOR DEPENDENT VARIABLES [FOR PURPOSES OF INTERPRETING OUTCOME MEASURE EFFECTS IN RELATIVE WITHIN-SD TERMS] ***

egen bdelay_14days = mean(delay_14days), by(stateid)
gen wdelay_14days = delay_14days - bdelay_14days
sum delay_14days wdelay_14days if itmod_adopt_state==1 & itmod_monthcount>0, detail
*
*
egen bdelay_29plusdays = mean(delay_29plusdays), by(stateid)
gen wdelay_29plusdays = delay_29plusdays - bdelay_29plusdays
sum delay_29plusdays  wdelay_29plusdays if itmod_adopt_state==1 & itmod_monthcount>0, detail
*
*






************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




** SAVE MANUSCRIPT DATABASE USED IN IN THIS PROGRAM CODE AND FOR SUPPLEMENTARY ANALYSES **


save "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Data\Implementation Delay.MANUSCRIPT DATABASE.04-18-2025.dta", replace




*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** TESTING H1 & H2: UNCONDITIONAL ORGANIZATIONAL ADAPTATION [H1] & CONDITIONAL INTER-SECTORAL HYPOTHESES [H2] [PLUS, BASELINE ORGANIZATIONAL LEARNING ESTIMATES] ***





**** TABLE 1 -- MODELS 1 & 2: "ADMINISTRATIVE LEADERSHIP, ORGANIZATIONAL LEARNING, & IMPLEMENTATION DELAY" MANUSCRIPT STATISTICAL ANALYSES [JULY 2024]: ORGANIZATIONAL LEARNING EFFECTS ON IMPLEMENTATION DELAY ****
***            (MODELS 1-2; FIGURES 1A-1C & 1D-1F)




****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




*** ESTIMATE MODEL 1: 14 DAYS OR LESS [DELAY] [MODEL 1 with ADDITIONAL COVARIATES: PROPORTION OF CASES WHERE THE INITIAL UIC PAYMENT IS MADE WITHIN 14 DAYS [2 WEEKS] OF STATE UI AGENCY APPROVAL:  [CONTROLS, PLUS STATE AND YEAR UNIT EFFECTS] *** 	[FIGURES 2A-2B]


npregress series delay_14days  itmod_monthcount i.agencyhead_gov0 if itmod_adopt_state==1, asis(agencyhead_tenure automationrate wstaff_load staff_tdiff unemp_rate  function_sup_avgsalreal i.stateid i.year adoptcohort_2002_itadopt  adoptcohort_2004_itadopt  adoptcohort_2006_itadopt adoptcohort_2007_itadopt adoptcohort_2009_itadopt adoptcohort_2010_itadopt  adoptcohort_2013_itadopt adoptcohort_2014_itadopt adoptcohort_2015_itadopt adoptcohort_2016_itadopt adoptcohort_2017_itadopt adoptcohort_2018_itadopt  adoptcohort_2020_itadopt adoptcohort_2021_itadopt)   vce(bootstrap, seed(123) rep(1000))

*
*


* [MODEL 2] FIGURE 2A:  E(Y) [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
legend(on order(1 "Unconditional Adaptation") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 2A}""{bf:Unconditional Adaptation Estimates}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 1]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 1.FIGURE 2A.04-18-2025.gph", replace



***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* [MODEL 1] FIGURE 2B: First-Difference Marginal Effect AGENCYHEAD_GOV0==1 - AGENCYHEAD_GOV0==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

*** ON THE IMPORTANCE OF GOVERNMENT EXPERIENCE [ANY TYPE: POLITICAL/ADMINISTRATIVE/AGENCY-SPECIFIC] ***

margins r.agencyhead_gov0, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Government - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 2B}""{bf:Conditional Adaptation Estimates: Prior Government - No Prior Government}" "{bf:Proportion of Cases Met 14 Day Limit}" "{bf:[MODEL 1]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 1.FIGURE 2B.04-18-2025.gph", replace





****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




*** MODEL 2: 28 DAYS OR MORE [DELAY] [MODEL 2 with ADDITIONAL COVARIATES: PROPORTION OF CASES WHERE THE INITIAL UIC PAYMENT IS MADE BEYOND 28 DAYS [2 WEEKS] OF STATE UI AGENCY APPROVAL: [CONTROLS, PLUS STATE AND YEAR UNIT EFFECTS] *** 	[FIGURES 2C-2D]


npregress series delay_29plusdays  itmod_monthcount i.agencyhead_gov0 if itmod_adopt_state==1, asis(agencyhead_tenure automationrate wstaff_load staff_tdiff unemp_rate  function_sup_avgsalreal i.stateid i.year adoptcohort_2002_itadopt  adoptcohort_2004_itadopt  adoptcohort_2006_itadopt adoptcohort_2007_itadopt adoptcohort_2009_itadopt adoptcohort_2010_itadopt  adoptcohort_2013_itadopt adoptcohort_2014_itadopt adoptcohort_2015_itadopt adoptcohort_2016_itadopt adoptcohort_2017_itadopt adoptcohort_2018_itadopt  adoptcohort_2020_itadopt adoptcohort_2021_itadopt)   vce(bootstrap, seed(123) rep(1000))

*
*
*


* [MODEL 2] FIGURE 2C: E(Y) [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
legend(on order(1 "Unconditional Adaptation") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 2C}""{bf: Unconditional Adaptation Estimates}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 2]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 2.FIGURE 2C.04-18-2025.gph", replace


****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



*  [MODEL 2] FIGURE 2D: First-Difference Marginal Effect AGENCYHEAD_GOV0==1 - AGENCYHEAD_GOV0==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

*** ON THE IMPORTANCE OF GOVERNMENT EXPERIENCE [ANY TYPE: POLITICAL/ADMINISTRATIVE/AGENCY-SPECIFIC] ***

margins r.agencyhead_gov0, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Government - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 2D}""{bf:Conditional Adaptation Estimates: Prior Government - No Prior Government}" "{bf:Proportion of Cases Met Exceeding 28 Days}" "{bf:[MODEL 2]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*

graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 2.FIGURE 2D.04-18-2025.gph", replace





************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** TESTING H3: INTRA-SECTORAL HYPOTHESIS [0 = NO PRIOR GOVERNMENT EXPERIENCE PLUS; 1 = PRIOR GOVERNMENT EXPERIENCE RESTRICTED TO ONLY ELECTED OFFICE OR WORKING ON BEHALF OF ELECTED OFFICIAL VIA STAFF; = 2 PRIOR GOVERNMENT EXPERIENCE: APPOINTED AGENCY POSITION; = 3 PRIOR GOVERNMENT EXPERIENCE: CIVIL SERVANT/NON-APPOINTED AGENCY POSITION] ***





** GENERATE BINARY INDICATOR VARIABLES BY TYPE OF PRIOR EXPERIENCE CONSONANT WITH TESTING H3 ** 

gen agencyhead_civiladmin = 1 if  agencyhead_gov4==1 | agencyhead_gov6==1
replace  agencyhead_civiladmin = 0 if  missing(agencyhead_civiladmin)
*
*
gen agencyhead_apptadmin = 1 if  agencyhead_gov3==1 | agencyhead_gov5==1
replace  agencyhead_apptadmin = 0 if  missing(agencyhead_apptadmin)
*
*
gen agencyhead_polrelated = 1 if  agencyhead_gov1==1 | agencyhead_gov2==1
replace  agencyhead_polrelated = 0 if  missing(agencyhead_polrelated)
*
*
*



*** MODELS DISTINGUISHING BETWEEN ALTERNATIVE TYPES OF PRIOR AGENCY HEAD EXPERIENCE ***

gen agencyhead_govord_1=.


** NO PRIOR GOVERNMENT EXPERIENCE [= 0] **
replace agencyhead_govord_1=0 if agencyhead_gov0==0


** PRIOR GOVERNMENT-POLITICAL RELATED EXPERIENCE ONLY [= 1; ELECTED OFFICIAL OR SERVING ON BEHALF OF ELECTED OFFICAL (STAFF OR NON-LINE AGENCY POSITION)] **
replace agencyhead_govord_1=1 if agencyhead_polrelated==1 & agencyhead_apptadmin==0 & agencyhead_civiladmin==0


** PRIOR GOVERNMENT-APPOINTED ADMINISTRATIVE AGENCY EXPERIENCE ONLY [= 2; EXCLUDING CIVIL SERVICE/NON-APPOINTED ADMINISTRATIVE EXPERIENCE (i.e., = 3): includes NON-UIP [agencyhead_gov3==1] AND UIP [agencyhead_gov5==1] AGENCIES] **
replace agencyhead_govord_1=2 if agencyhead_apptadmin==1 & agencyhead_civiladmin==0


** PRIOR GOVERNMENT CIVIL SERVICE/NON-APPOINTED ADMINISTRATIVE EXPERIENCE [= 3; EITHER WITH OR WITHOUT GOVERNMENT-POLITICAL RELATED OR APPOINTED POSITION EXPERIENCE: includes NON-UIP [agencyhead_gov4==1] AND UIP [agencyhead_gov6==1] AGENCIES] **
replace agencyhead_govord_1=3 if agencyhead_civiladmin==1 

*
*
*
tab agencyhead_govord_1 if itmod_adopt_state==1 & itmod_monthcount==0
*
*
tab agencyhead_govord_1 if itmod_adopt_state==1 & itmod_monthcount>0




****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



**** TABLE 1 -- MODELS 3 & 4: "ADMINISTRATIVE LEADERSHIP, ORGANIZATIONAL LEARNING, & IMPLEMENTATION DELAY" MANUSCRIPT STATISTICAL ANALYSES [JULY 2024]: ORGANIZATIONAL LEARNING EFFECTS ON IMPLEMENTATION DELAY ****
***            (MODELS 3-4; FIGURES 3A-3F; 4A-4F)




**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** ESTIMATE MODEL 3: 14 DAYS OR LESS [DELAY] [MODEL 3 with ADDITIONAL COVARIATES: PROPORTION OF CASES WHERE THE INITIAL UIC PAYMENT IS MADE WITHIN 14 DAYS [2 WEEKS] OF STATE UI AGENCY APPROVAL: ORGANIZATIONAL LEARNING [CONTROLS, PLUS STATE AND YEAR UNIT EFFECTS] *** [FIGURES 2A-2F]


npregress series delay_14days  itmod_monthcount i.agencyhead_govord_1 if itmod_adopt_state==1, asis(agencyhead_tenure automationrate wstaff_load staff_tdiff unemp_rate  function_sup_avgsalreal i.stateid i.year  adoptcohort_2002_itadopt adoptcohort_2004_itadopt  adoptcohort_2006_itadopt adoptcohort_2007_itadopt adoptcohort_2009_itadopt adoptcohort_2010_itadopt  adoptcohort_2013_itadopt adoptcohort_2014_itadopt adoptcohort_2015_itadopt adoptcohort_2016_itadopt adoptcohort_2017_itadopt adoptcohort_2018_itadopt  adoptcohort_2020_itadopt adoptcohort_2021_itadopt)   vce(bootstrap, seed(123) rep(1000))

*

*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 3] FIGURE 3A: First-Difference Marginal Effect AGENCYHEAD_GOVORD_1==1 - AGENCYHEAD_GOVORD_1==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==0|agencyhead_govord_1==1, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) /// 
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Political Related Only - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 3A}""{bf:Conditional Adaptation Estimates: Prior Political Related Only - No Prior Government}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 3]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 3.FIGURE 3A.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

*

* [MODEL 3] FIGURE 3B: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==2 - AGENCYHEAD_GOVORD_1==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==0|agencyhead_govord_1==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Appointed Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 3B}""{bf:Conditional Adaptation Estimates: Prior Appointed Administrative - No Prior Government}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 3]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 3.FIGURE 3B.04-18-2025.gph", replace


*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 3] FIGURE 3C: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==3 - AGENCYHEAD_GOVORD_1==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==0|agencyhead_govord_1==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Civil Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 3C}""{bf:Conditional Adaptation Estimates: Prior Civil Administrative - No Prior Government}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 3]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 3.FIGURE 3C.04-18-2025.gph", replace


*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* [MODEL 3] FIGURE 3D: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==2 - AGENCYHEAD_GOVORD_1==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==1|agencyhead_govord_1==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Appointed Administrative - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 3D}""{bf:Conditional Adaptation Estimates: Prior Appointed Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 3]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 3.FIGURE 3D.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 3] FIGURE 3E: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==3 - AGENCYHEAD_GOVORD_1==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==1|agencyhead_govord_1==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Civil Administrative  - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 3E}""{bf:Conditional Adaptation Estimates: Prior Civil Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 3]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 3.FIGURE 3E.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 3] FIGURE 3F: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==3 - AGENCYHEAD_GOVORD_1==2 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==2|agencyhead_govord_1==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Civil Administrative  - Prior Appointed Administrative") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 3F}""{bf:Conditional Adaptation Estimates: Prior Civil Administrative - Prior Appointed Administrative}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 3]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 3.FIGURE 3F.04-18-2025.gph", replace




********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************






*** MODEL 4: 28 DAYS OR MORE [DELAY] [MODEL 4 with ADDITIONAL COVARIATES: PROPORTION OF CASES WHERE THE INITIAL UIC PAYMENT IS MADE BEYOND 28 DAYS [2 WEEKS] OF STATE UI AGENCY APPROVAL: [CONTROLS, PLUS STATE AND YEAR UNIT EFFECTS] *** 	[FIGURES 4A-4F]

*
*

npregress series  delay_29plusdays  itmod_monthcount i.agencyhead_govord_1 if itmod_adopt_state==1, asis(agencyhead_tenure automationrate wstaff_load staff_tdiff unemp_rate  function_sup_avgsalreal i.stateid i.year adoptcohort_2002_itadopt adoptcohort_2004_itadopt  adoptcohort_2006_itadopt adoptcohort_2007_itadopt adoptcohort_2009_itadopt adoptcohort_2010_itadopt  adoptcohort_2013_itadopt adoptcohort_2014_itadopt adoptcohort_2015_itadopt adoptcohort_2016_itadopt adoptcohort_2017_itadopt adoptcohort_2018_itadopt  adoptcohort_2020_itadopt adoptcohort_2021_itadopt)   vce(bootstrap, seed(123) rep(1000))

*

*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





* [MODEL 4] FIGURE 4A: First-Difference Marginal Effect AGENCYHEAD_GOVORD_1==1 - AGENCYHEAD_GOVORD_1==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==0|agencyhead_govord_1==1, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) /// 
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Political Related Only - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 4A}""{bf:Conditional Adaptation Estimates: Prior Political Related Only - No Prior Government}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 4]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 4.FIGURE 4A.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

*

* [MODEL 4] FIGURE 4B: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==2 - AGENCYHEAD_GOVORD_1==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==0|agencyhead_govord_1==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Appointed Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 4B}""{bf:Conditional Adaptation Estimates: Prior Appointed Administrative - No Prior Government}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 4]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 4.FIGURE 4B.04-18-2025.gph", replace


*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 4] FIGURE 4C: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==3 - AGENCYHEAD_GOVORD_1==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==0|agencyhead_govord_1==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Civil Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 4C}""{bf:Conditional Adaptation Estimates: Prior Civil Administrative - No Prior Government}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 4]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 4.FIGURE 4C.04-18-2025.gph", replace


*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* [MODEL 4] FIGURE 4D: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==2 - AGENCYHEAD_GOVORD_1==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==1|agencyhead_govord_1==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Appointed Administrative - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 4D}""{bf:Conditional Adaptation Differential: Prior Appointed Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 4]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 4.FIGURE 4D.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 4] FIGURE 4E: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==3 - AGENCYHEAD_GOVORD_1==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==1|agencyhead_govord_1==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Civil Administrative  - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 4E}""{bf:Conditional Adaptation Estimates: Prior Civil Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 4]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 4.FIGURE 4E.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 4] FIGURE 4F: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_1==3 - AGENCYHEAD_GOVORD_1==2 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_1 if agencyhead_govord_1==2|agencyhead_govord_1==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Civil Administrative  - Prior Appointed Administrative") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 4F}""{bf:Conditional Adaptation Estimates: Prior Civil Administrative - Prior Appointed Administrative}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 4]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 4.FIGURE 4F.04-18-2025.gph", replace






***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************









*** TESTING H4: INTRA-SECTORAL AGENCY-SPECIFIC HYPOTHESIS [0 = NO PRIOR GOVERNMENT EXPERIENCE; 1 = PRIOR GOVERNMENT EXPERIENCE RESTRICTED TO ONLY ELECTED OFFICE OR WORKING ON BEHALF OF ELECTED OFFICIAL VIA STAFF; = 2 PRIOR GOVERNMENT EXPERIENCE RESTRICTED ONLY TO NON-UIP AGENCY: APPOINTED OR CIVIL/NON-APPOINTED POSITION; = 3 PRIOR GOVERNMENT EXPERIENCE: IN UIP AGENCY: APPOINTED OR CIVIL SERVANT/NON-APPOINTED AGENCY POSITION] ***



** GENERATE BINARY INDICATOR VARIABLES BY TYPE OF PRIOR EXPERIENCE CONSONANT WITH TESTING H4 ** 

gen agencyhead_uipadmin = 1 if  agencyhead_gov5==1 | agencyhead_gov6==1
replace  agencyhead_uipadmin = 0 if  missing(agencyhead_uipadmin)
*
*
gen agencyhead_nonuipadmin = 1 if  agencyhead_gov3==1 | agencyhead_gov4==1
replace  agencyhead_nonuipadmin = 0 if  missing(agencyhead_nonuipadmin) 
*
*
* NOTE: no need to generate agencyhead_polrelated since done previously for H3 *
*
*
*



*** MODELS DISTINGUISHING BETWEEN ALTERNATIVE TYPES OF PRIOR AGENCY HEAD EXPERIENCE ***

gen agencyhead_govord_2=.


** NO PRIOR GOVERNMENT EXPERIENCE [= 0] **
replace agencyhead_govord_2=0 if agencyhead_gov0==0


** PRIOR GOVERNMENT-POLITICAL RELATED EXPERIENCE ONLY [= 1; ELECTED OFFICIAL OR SERVING ON BEHALF OF ELECTED OFFICAL (STAFF OR NON-LINE AGENCY POSITION)] **
replace agencyhead_govord_2=1 if agencyhead_polrelated==1 & agencyhead_nonuipadmin==0 & agencyhead_uipadmin==0


** PRIOR GOVERNMENT NON-UIP ADMINISTRATIVE AGENCY EXPERIENCE ONLY [= 2; EXCLUDING UIP ADMINISTRATIVE EXPERIENCE (i.e., = 3): INCLUDES APPOINTED [agencyhead_gov3==1] AND NON-APPOINTED/CIVIL [agencyhead_gov4==1] POSITIONS] **
replace agencyhead_govord_2=2 if agencyhead_nonuipadmin==1 & agencyhead_uipadmin==0


** PRIOR GOVERNMENT UIP ADMINISTRATIVE AGENCY EXPERIENCE ONLY [= 3; INCLUDES  APPOINTED [agencyhead_gov5==1] AND NON-APPOINTED/CIVIL [agencyhead_gov6==1] POSITIONS] **
replace agencyhead_govord_2=3 if agencyhead_uipadmin==1 

*
*
*
tab agencyhead_govord_2 if itmod_adopt_state==1 & itmod_monthcount==0
*
*
tab agencyhead_govord_2 if itmod_adopt_state==1 & itmod_monthcount>0






*** NEED TO SAVE MANUSCRIPT WITH NEWLY CREATED AGENCY LEADER MEASURES ABOVE ***

save "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Data\Implementation Delay.MANUSCRIPT Database.04-18-2025.dta", replace



************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************






**** TABLE 1 -- MODELS 5 & 6: "ADMINISTRATIVE LEADERSHIP, ORGANIZATIONAL LEARNING, & IMPLEMENTATION DELAY" MANUSCRIPT STATISTICAL ANALYSES [JULY 2024]: ORGANIZATIONAL LEARNING EFFECTS ON IMPLEMENTATION DELAY ****
***            (MODELS 5-6; FIGURES 5A-5F; 6A-6F)




****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** ESTIMATE MODEL 5: 14 DAYS OR LESS [DELAY] [MODEL 5 with ADDITIONAL COVARIATES: PROPORTION OF CASES WHERE THE INITIAL UIC PAYMENT IS MADE WITHIN 14 DAYS [2 WEEKS] OF STATE UI AGENCY APPROVAL: ORGANIZATIONAL LEARNING [CONTROLS, PLUS STATE AND YEAR UNIT EFFECTS] *** [FIGURES 5A-5F]


npregress series delay_14days  itmod_monthcount i.agencyhead_govord_2 if itmod_adopt_state==1, asis(agencyhead_tenure automationrate wstaff_load staff_tdiff unemp_rate  function_sup_avgsalreal i.stateid i.year adoptcohort_2002_itadopt adoptcohort_2004_itadopt  adoptcohort_2006_itadopt adoptcohort_2007_itadopt adoptcohort_2009_itadopt adoptcohort_2010_itadopt  adoptcohort_2013_itadopt adoptcohort_2014_itadopt adoptcohort_2015_itadopt adoptcohort_2016_itadopt adoptcohort_2017_itadopt adoptcohort_2018_itadopt  adoptcohort_2020_itadopt adoptcohort_2021_itadopt)   vce(bootstrap, seed(123) rep(1000))

*

*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 5] FIGURE 5A: First-Difference Marginal Effect AGENCYHEAD_GOVORD_2==1 - AGENCYHEAD_GOVORD_2==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==0|agencyhead_govord_2==1, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) /// 
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Political Related Only - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 5A}""{bf:Conditional Adaptation Estimates: Prior Political Related Only - No Prior Government}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 5]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 5.FIGURE 5A.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

*

* [MODEL 5] FIGURE 5B: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==2 - AGENCYHEAD_GOVORD_2==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==0|agencyhead_govord_2==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Non-UIP Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 5B}""{bf:Conditional Adaptation Estimates: Prior Non-UIP Administrative - No Prior Government}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 5]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 5.FIGURE 5B.04-18-2025.gph", replace


*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 5] FIGURE 5C: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==3 - AGENCYHEAD_GOVORD_2==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==0|agencyhead_govord_2==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior UIP Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 5C}""{bf:Conditional Adaptation Estimates: Prior UIP Administrative - No Prior Government}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 5]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 5.FIGURE 5C.04-18-2025.gph", replace


*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* [MODEL 5] FIGURE 5D: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==2 - AGENCYHEAD_GOVORD_2==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==1|agencyhead_govord_2==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Non-UIP Administrative - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 5D}""{bf:Conditional Adaptation Estimates: Prior Non-UIP Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 5]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 5.FIGURE 5D.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 5] FIGURE 5E: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==3 - AGENCYHEAD_GOVORD_2==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==1|agencyhead_govord_2==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior UIP Administrative  - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 5E}""{bf:Conditional Adaptation Estimates: Prior UIP Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 5]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 5.FIGURE 5E.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 5] FIGURE 5F: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==3 - AGENCYHEAD_GOVORD_2==2 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==2|agencyhead_govord_2==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior UIP Administrative  - Prior Non-UIP Administrative") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 5F}""{bf:Conditional Adaptation Estimates: Prior UIP Administrative - Prior Non-UIP Administrative}" "{bf:Proportion of Cases Met 14 Day Limit [MODEL 5]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Timely Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 5.FIGURE 5F.04-18-2025.gph", replace






****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** MODEL 6: 28 DAYS OR MORE [DELAY] [MODEL 6 with ADDITIONAL COVARIATES: PROPORTION OF CASES WHERE THE INITIAL UIC PAYMENT IS MADE BEYOND 28 DAYS [2 WEEKS] OF STATE UI AGENCY APPROVAL: [CONTROLS, PLUS STATE AND YEAR UNIT EFFECTS] *** 	[FIGURES 6A-6F]

*
*

npregress series  delay_29plusdays  itmod_monthcount i.agencyhead_govord_2 if itmod_adopt_state==1, asis(agencyhead_tenure automationrate wstaff_load staff_tdiff unemp_rate  function_sup_avgsalreal i.stateid i.year  adoptcohort_2002_itadopt adoptcohort_2004_itadopt  adoptcohort_2006_itadopt adoptcohort_2007_itadopt adoptcohort_2009_itadopt adoptcohort_2010_itadopt  adoptcohort_2013_itadopt adoptcohort_2014_itadopt adoptcohort_2015_itadopt adoptcohort_2016_itadopt adoptcohort_2017_itadopt adoptcohort_2018_itadopt  adoptcohort_2020_itadopt adoptcohort_2021_itadopt)  vce(bootstrap, seed(123) rep(1000))

*

*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 6] FIGURE 6A: First-Difference Marginal Effect AGENCYHEAD_GOVORD_2==1 - AGENCYHEAD_GOVORD_2==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==0|agencyhead_govord_2==1, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))
marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) /// 
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Political Related Only - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 6A}""{bf:Conditional Adaptation Estimates: Prior Political Related Only - No Prior Government}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 6]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 6.FIGURE 6A.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

*

* [MODEL 6] FIGURE 6B: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==2 - AGENCYHEAD_GOVORD_2==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==0|agencyhead_govord_2==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Non-UIP Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 6B}""{bf:Conditional Adaptation Estimates: Prior Non-UIP Administrative - No Prior Government}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 6]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.08(0.02)0.08, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 6.FIGURE 6B.04-18-2025.gph", replace


*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 6] FIGURE 6C: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==3 - AGENCYHEAD_GOVORD_2==0 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==0|agencyhead_govord_2==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior UIP Administrative - No Prior Government") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 6C}""{bf:Conditional Adaptation Estimates: Prior UIP Administrative - No Prior Government}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 6]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 6.FIGURE 6C.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************




* [MODEL 6] FIGURE 6D: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==2 - AGENCYHEAD_GOVORD_2==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==1|agencyhead_govord_2==2, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior Non-UIP Administrative - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 6D}""{bf:Conditional Adaptation Estimates: Prior Non-UIP Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 6]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 6.FIGURE 6D.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 6] FIGURE 6E: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==3 - AGENCYHEAD_GOVORD_2==1 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==1|agencyhead_govord_2==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior UIP Administrative  - Prior Political Related Only") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 6E}""{bf:Conditional Adaptation Estimates: Prior UIP Administrative - Prior Political Related Only}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 6]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 6.FIGURE 6E.04-18-2025.gph", replace



*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



* [MODEL 6] FIGURE 6F: First-Difference Marginal Effect  AGENCYHEAD_GOVORD_2==3 - AGENCYHEAD_GOVORD_2==2 [WITH RESPECT TO MONTHS SINCE ADOPTION (t + k) : 0 1 6 12.....60]

margins r.agencyhead_govord_2 if agencyhead_govord_2==2|agencyhead_govord_2==3, at(itmod_monthcount=(0 1 6 12 18 24 30 36 42 48 54 60))

marginsplot, recast(connected) ciopt(color(%40)) recastci(rarea) ///
yline(0, lcolor(%40gs) lpattern(shortdash)) ///
legend(on order(1 "Prior UIP Administrative  - Prior Non-UIP Administrative") pos(6) ring(2) cols(2) size(9pt))  ///
title(" {bf:FIGURE 6F}""{bf:Conditional Adaptation Estimates: Prior UIP Administrative - Prior Non-UIP Administrative}" "{bf:Proportion of Cases Met Exceeding 28 Days [MODEL 6]}", size(10pt) linegap(0.7) margin(t+1 b+2)) ///
xtitle("Months since Institution of IT Reform", size(10pt) margin(t+2 b+2)) ///
ytitle("Lapsed Payment Rate Differential", size(10pt) margin(r+2)) ///
xlabel(0 "0" 1 "1" 6 "6" 12 "12" 18 "18" 24 "24" 30 "30" 36 "36" 42 "42" 48 "48" 54 "54" 60 "60", labsize(9pt) ) ///
ylabel(-0.16(0.04)0.16, labsize(9pt) format(%9.2f) angle(0)) xsize(6)
*
*
graph save "Graph" "C:\Users\gk57526\Dropbox\Administration of UI Programs in the American States (Ji-Hyeun Hong)\Implementation Delay Project (Paper #2)\JPART Conditional Acceptance\Empirics\Graphics\marginsplot.Model 6.FIGURE 6F.04-18-2025.gph", replace






*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************



log close
